Ext.define('Service.role.model.RoleDataListModel', {
    extend: 'Ext.data.Model',
    fields: [
         {name: 'id',  type: 'int'},
         {name: 'roleName',   type: 'string'},
         {name: 'roleText',   type: 'string'},
         {name: 'createTime', type: 'date'},
         {name: 'updateTime', type: 'date'},
         {name: 'createUser', type: 'int'},
         {name: 'updateUser', type: 'int'},
         {name: 'validFlag', type: 'int'},
         {name: 'remark', type: 'string'},
         {name: 'createUserName', type: 'string'},
         {name: 'updateUserName', type: 'string'},
         {name: 'validFlagText', type: 'string',convert : function(v,record){
			return record.get('validFlag') == 1 ? '启用':'停用';         
         }}
     ]
});
